package com.nuoniu.sibanyun.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 单据审核表
 * </p>
 *
 * @author baiqiang
 * @since 2020-11-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pub_voucher_approval")
@ApiModel(value="ErpVoucherApproval对象", description="单据审核表")
public class ErpVoucherApproval extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "模块id")
    @TableField("module_id")
    private Integer moduleId;

    @ApiModelProperty(value = "单据名称")
    @TableField("voucher_name")
    private String voucherName;

    @ApiModelProperty(value = "模块名称")
    @TableField("module_name")
    private String moduleName;

    @ApiModelProperty(value = "是否需要审核")
    @TableField("is_approval")
    private Boolean isApproval;

    @ApiModelProperty(value = "是否启用审批")
    @TableField("is_start_approval")
    private Boolean isStartApproval;

    @ApiModelProperty(value = "是否移动审批")
    @TableField("is_move_approval")
    private Boolean isMoveApproval;

    @ApiModelProperty(value = "是否邮件审批")
    @TableField("is_email_approval")
    private Boolean isEmailApproval;

    @ApiModelProperty(value = "审核人")
    @TableField("approval_user_id")
    private Integer approvalUserId;

    @ApiModelProperty(value = "审核人")
    @TableField("approval_user_name")
    private String approvalUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user_id")
    private Integer createUserId;


}
